// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package androidx.gdata;

import java.io.PrintWriter;

/**
 * @author jennings
 *         Date: Nov 12, 2008
 */
public interface XMLSerializer<T> {
  public static final String XML_PROLOG = "<?xml version='1.0' encoding='UTF-8'?>";
  public static final String STYLESHEET = "<?xml-stylesheet href=\"http://www.blogger.com/styles/atom.css\" type=\"text/css\"?>";
  public static final String FEED_PROLOG = "<feed xmlns='http://www.w3.org/2005/Atom'\n"+
      "      xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'\n" +
      "      xmlns:gContact='http://schemas.google.com/contact/2008'\n" +
      "      xmlns:batch='http://schemas.google.com/gdata/batch'\n" +
      "      xmlns:gd='http://schemas.google.com/g/2005'>";

  public static final String FEED_EPILOG = "</feed>";
  public void serialize(PrintWriter out, T thing);
}
